.class public Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;
.super Ljava/lang/Object;
.source "MaterialShowcaseView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "Builder"
.end annotation


# instance fields
.field private final activity:Landroid/app/Activity;

.field private fullWidth:Z

.field private shapeType:I

.field final showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;


# direct methods
.method public constructor <init>(Landroid/app/Activity;)V
    .locals 1

    .line 467
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 460
    iput-boolean v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->fullWidth:Z

    .line 461
    iput v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->shapeType:I

    .line 468
    iput-object p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->activity:Landroid/app/Activity;

    .line 470
    new-instance v0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    invoke-direct {v0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    return-void
.end method


# virtual methods
.method public build()Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;
    .locals 5

    .line 596
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    invoke-static {v0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->access$1300(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;)Luk/co/deanwild/materialshowcaseview/Shape;

    move-result-object v0

    if-nez v0, :cond_2

    .line 597
    iget v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->shapeType:I

    if-eqz v0, :cond_1

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 599
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    new-instance v1, Luk/co/deanwild/materialshowcaseview/RectangleShape;

    invoke-static {v0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->access$100(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;)Luk/co/deanwild/materialshowcaseview/Target;

    move-result-object v2

    invoke-interface {v2}, Luk/co/deanwild/materialshowcaseview/Target;->getBounds()Landroid/graphics/Rect;

    move-result-object v2

    iget-object v3, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->activity:Landroid/app/Activity;

    iget-boolean v4, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->fullWidth:Z

    invoke-direct {v1, v2, v3, v4}, Luk/co/deanwild/materialshowcaseview/RectangleShape;-><init>(Landroid/graphics/Rect;Landroid/app/Activity;Z)V

    invoke-virtual {v0, v1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->setShape(Luk/co/deanwild/materialshowcaseview/Shape;)V

    goto :goto_0

    .line 606
    :cond_0
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Usupported shape type: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->shapeType:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 603
    :cond_1
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    new-instance v1, Luk/co/deanwild/materialshowcaseview/CircleShape;

    invoke-static {v0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->access$100(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;)Luk/co/deanwild/materialshowcaseview/Target;

    move-result-object v2

    invoke-direct {v1, v2}, Luk/co/deanwild/materialshowcaseview/CircleShape;-><init>(Luk/co/deanwild/materialshowcaseview/Target;)V

    invoke-static {v0, v1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->access$1302(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;Luk/co/deanwild/materialshowcaseview/Shape;)Luk/co/deanwild/materialshowcaseview/Shape;

    .line 609
    :cond_2
    :goto_0
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    return-object v0
.end method

.method public setContentText(Ljava/lang/CharSequence;)Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;
    .locals 1

    .line 510
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    invoke-static {v0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->access$400(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;Ljava/lang/CharSequence;)V

    return-object p0
.end method

.method public setDelay(I)Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;
    .locals 3

    .line 555
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    int-to-long v1, p1

    invoke-static {v0, v1, v2}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->access$1000(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;J)V

    return-object p0
.end method

.method public setDismissText(Ljava/lang/CharSequence;)Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;
    .locals 1

    .line 489
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    invoke-static {v0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->access$200(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;Ljava/lang/CharSequence;)V

    return-object p0
.end method

.method public setDismissTextBackground(I)Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;
    .locals 1

    .line 494
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    invoke-static {v0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->access$300(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;I)V

    return-object p0
.end method

.method public setIllustration(Landroid/graphics/drawable/Drawable;)Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;
    .locals 1

    if-eqz p1, :cond_0

    .line 519
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    invoke-static {v0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->access$500(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;Landroid/graphics/drawable/Drawable;)V

    :cond_0
    return-object p0
.end method

.method public setMaskColour(I)Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;
    .locals 1

    .line 540
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    invoke-static {v0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->access$700(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;I)V

    return-object p0
.end method

.method public setPerformViewClickOnTouch(Z)Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;
    .locals 1

    .line 535
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    invoke-virtual {v0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->setmShouldPerformClick(Z)V

    return-object p0
.end method

.method public setShape(Luk/co/deanwild/materialshowcaseview/Shape;)Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;
    .locals 1

    .line 575
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    invoke-virtual {v0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->setShape(Luk/co/deanwild/materialshowcaseview/Shape;)V

    return-object p0
.end method

.method public setTarget(Landroid/view/View;)Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;
    .locals 2

    .line 477
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;->showcaseView:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;

    new-instance v1, Luk/co/deanwild/materialshowcaseview/ViewTarget;

    invoke-direct {v1, p1}, Luk/co/deanwild/materialshowcaseview/ViewTarget;-><init>(Landroid/view/View;)V

    invoke-virtual {v0, v1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->setTarget(Luk/co/deanwild/materialshowcaseview/Target;)V

    return-object p0
.end method
